<template>
  <div class="address-list">
    <address-list-item v-for="(item,index) in myAddressList" :key='index' :data='item' v-model="current"></address-list-item>
  </div>
</template>

<script>
import addressListItem from './addressListItem.vue'
export default {
  name:'addressList',
  components:{
    addressListItem
  },
  data () {
    return {
      current:this.value
    }
  },
  props:['myAddressList','value'],
  methods:{
  },
  watch: {
    'current' (val) {
      console.log(val)
      this.$emit('input',val)
    }
  }
}

</script>

<style lang="scss">
  
</style>